package com.fofia.iotweb.web.dbdomain.models.admin;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.noear.snack.annotation.ONodeAttr;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName sys_role
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Table("sys_role")
public class SysRole implements Serializable {

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table sys_dept
     *
     * @mbg.generated 2021-02-25 15:38:49
     */
      private static final long serialVersionUID = 1L;

    /**
     * 部门id
     *
     * @mbg.generated 2021-02-25 15:38:49
     */
       @Id(value = "id",keyType = KeyType.None)
        private long id;

        /**
         * 角色名称
         *
         * @mbg.generated Tue Feb 02 10:26:40 CST 2021
         */
        @Column(value = "role_name")
        //@ONodeAttr(name = "record_id")
        private String roleName;

        /**
         * 角色编码
         *
         * @mbg.generated Tue Feb 02 10:26:40 CST 2021
         */
        @Column(value = "role_code")
        private String roleCode;

        /**
         * 排序
         *
         * @mbg.generated Tue Feb 02 10:26:40 CST 2021
         */
        @Column(value = "role_sort")
        private int roleSort=0;

        /**
         * 超管(1:是，0:不是)
         *
         * @mbg.generated Tue Feb 02 10:26:40 CST 2021
         */
        @Column(value = "role_super")
        private int roleSuper=0;

        /**
         * 角色状态(0:正常，1:禁用)
         *
         * @mbg.generated Tue Feb 02 10:26:40 CST 2021
         */
        @Column(value = "role_status")
        private int roleStatus=0;

        /**
         * 创建人
         *
         * @mbg.generated Tue Feb 02 10:26:40 CST 2021
         */
        @Column(value = "create_person")
        private String createPerson;

        /**
         * 创建时间
         *
         * @mbg.generated Tue Feb 02 10:26:40 CST 2021
         */
        @Column(value = "create_time")
        private Date createTime;

        /**
         * 备注
         *
         * @mbg.generated Tue Feb 02 10:26:40 CST 2021
         */
        @Column(value = "remark")
        private String remark;

    }
